import Vue from 'vue'
import { parseTime, resetForm, addDateRange, selectDictLabel, download, isMoney } from "@/utils/utils";
import Pagination from "@/components/Pagination";
import SvgIcon from "@/components/SvgIcon";
import scrollContainer from "@/components/scrollContainer";
import permission from '@/directive/permission'

// 全局方法挂载
Vue.prototype.parseTime = parseTime //将时间转为Y-M-D h:m:i
Vue.prototype.resetForm = resetForm //  重置表单
Vue.prototype.addDateRange = addDateRange  // 添加日期范围
Vue.prototype.selectDictLabel = selectDictLabel // 回显数据字典
Vue.prototype.download = download // 下载
Vue.prototype.isMoney = isMoney // 输入金钱替换

Vue.component('Pagination', Pagination)
Vue.component('SvgIcon', SvgIcon)
Vue.component('scrollContainer', scrollContainer)
Vue.use(permission)
